package application;

public class CashDispenser {
    private int money =10000;
    public void spitOutMoney(int amount) {
        updateCashBalance(amount);
    }
    public void updateCashBalance(int amount) {
        if(money>amount){
            this.money-=amount;
        }
    }
}
